package ink.xiaobaibai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ink.xiaobaibai.common.UriMappingRoleName;
import ink.xiaobaibai.common.UserIdRoleNameMapping;
import ink.xiaobaibai.dao.AdminUserRoleDao;
import ink.xiaobaibai.entity.AdminUserRole;
import ink.xiaobaibai.service.IAdminUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xiaobaibai
 * @since 2021-05-11
 */
@Service
public class AdminUserRoleServiceImpl extends ServiceImpl<AdminUserRoleDao, AdminUserRole> implements IAdminUserRoleService {

    @Override
    public List<UserIdRoleNameMapping> getRoleByUserIds(List<Integer> userIds) {
        return this.baseMapper.getRoleByUserIds(userIds);
    }

    @Override
    public List<String> getRoleByUserId(Integer userId) {
        return this.baseMapper.getRoleByUserId(userId);
    }

    @Override
    public List<UriMappingRoleName> getUriMappingRoleName() {
        return this.baseMapper.getUriMappingRoleName();
    }

}
